package com.bluegalaxy.nhb.snservice.core.util;


import com.bluegalaxy.nhb.snservice.domain.constant.SessionKeysConstant;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.servlet.http.HttpServletRequest;
import java.util.Locale;

/**
 * Created by IntelliJ IDEA.
 *
 * @author:
 * @date: 2019-08-08
 * @time: 15:22
 * @description: To change this template use File | Settings | File Templates.
 */
public class AppUtil {



    /**
     * 获取系统语言环境
     * @return
     */
    public static Locale getLocale(){
        return LocaleContextHolder.getLocale();
    }

    /**
     * 获取语言信息
     * @return
     */
    public static String getLanguage(){
        return getLocale().toString();
    }





}
